﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Util
{
    public class CheckNull
    {
        public bool CheckEOF(DataSet ds)
        {
            return !(ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0);
        }
        public bool CheckEOF(DataTable dt)
        {
            return !(dt == null || dt.Rows.Count == 0);
        }
    }
}
